using KL.Core.Common.infrastructure;

namespace KL.Core.Common.MyOptions;
/// <summary>
/// RabbitMQ 配置选项
/// </summary>
public class RabbitMqOptions: IConfigurableOptions
{
    /// <summary>
    /// 是否开启
    /// </summary>
    public bool Enabled { get; set; }
    /// <summary>
    /// 实例多个
    /// </summary>
    public IEnumerable<RabbitMqVhost> Vhosts { get; set; }
}
/// <summary>
/// 实例
/// </summary>
public class RabbitMqVhost
{
    /// <summary>
    /// 
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// IP
    /// </summary>
    public string IP { get; set; }
    /// <summary>
    /// 端口
    /// </summary>
    public int PORT { get; set; }
    /// <summary>
    /// 用户名
    /// </summary>
    public string USERID { get; set; }
    /// <summary>
    /// password
    /// </summary>
    public string PWD { get; set; }
    /// <summary>
    /// vhost
    /// </summary>
    public string VHOST { get; set; }
}